.datree-box {
  &-title {
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
  }

  &-desc {
    padding: 10px 20px;
    font-size: 12px;
    color: $uni-color-primary;
    background: #fafafa;
    border: 1px dashed $uni-color-primary;
  }

  &-input {
    box-sizing: border-box;
    width: 100%;
    padding: 0 20px;
    margin: 10px 0;

    > input,
    > uni-input {
      box-sizing: border-box;
      width: 100%;
      height: 40px;
      padding: 0 10px;
      line-height: 40px;
      border: 1px solid $uni-color-primary;
    }
  }
}

.datree-test {
  &-box {
    margin-bottom: 10px;
    background: rgba($uni-color-primary, 0.1);
  }

  &-item {
    display: flex;
    align-items: center;
    padding: 5px 20px;
    font-size: 14px;

    > text,
    > uni-text {
      flex-grow: 1;
    }

    > button,
    > uni-button {
      flex-shrink: 0;
      width: auto;
      height: auto;
      padding: 8px 16px;
      margin-left: 10px;
      font-size: 12px;
      line-height: 1;
      color: #fff;
      background: $uni-color-primary;

      &::after {
        display: none;
      }

      &:active {
        background: $uni-color-warning;
      }
    }
  }
}
